package gui;

import javax.swing.*;

import data.User;

import java.awt.Font;

public class CreateUser extends JPanel{
	private JLabel lblPleaseTypeIn;
	private JLabel lblFirstname;
	private JLabel lblLastname;
	private JLabel lblID;
	private JLabel lblPIN;
	private JLabel lblCreateAUser;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	public CreateUser() {
		setLayout(null);
		
		lblPleaseTypeIn = new JLabel("Please type in:");
		lblPleaseTypeIn.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblPleaseTypeIn.setBounds(80, 49, 102, 19);
		add(lblPleaseTypeIn);
		
		lblFirstname = new JLabel("Firstname");
		lblFirstname.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblFirstname.setBounds(112, 79, 70, 19);
		add(lblFirstname);
		
		lblLastname = new JLabel("Lastname");
		lblLastname.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblLastname.setBounds(112, 109, 67, 19);
		add(lblLastname);
		
		lblID = new JLabel("ID");
		lblID.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblID.setBounds(112, 134, 27, 19);
		add(lblID);
		
		lblPIN = new JLabel("PIN");
		lblPIN.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblPIN.setBounds(112, 159, 27, 19);
		add(lblPIN);
		
		lblCreateAUser = new JLabel("Create a User");
		lblCreateAUser.setFont(new Font("SansSerif", Font.BOLD, 16));
		lblCreateAUser.setBounds(169, 11, 140, 21);
		add(lblCreateAUser);
		
		textField = new JTextField();
		textField.setBounds(192, 80, 86, 20);
		add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(192, 110, 86, 20);
		add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(192, 135, 86, 20);
		add(textField_2);
		textField_2.setColumns(10);
	}
	
//	public void createUser() {
//		screen.displayMessage("Firstname: ");
//		String firstName = keypad.getStringInput();
//		screen.displayMessage("Lastname: ");
//		String lastName = keypad.getStringInput();
//		screen.displayMessage("Input CPR (Will be used as login): ");
//		int username = keypad.getInput(13); // sets username/CPR (int only)
//		screen.displayMessage("Input password: ");
//		int password = keypad.getInput(14); // sets password (int only)
//		User user = new User(username, password, firstName, lastName); // Instantiates user with username and password as parameters
//		screen.displayMessageLine("\nUser created");	
//		userList.add(user); // adds the new user to arraylist
//	}
}
